package com.sundaying.gooway.action;

import com.opensymphony.xwork2.ActionSupport;
import com.sundaying.gooway.entity.GleanInfo;
import com.sundaying.gooway.service.GleanInfoService;

public class GleanInfoAction extends ActionSupport{
	private GleanInfoService gleanInfoService;
	private GleanInfo gleanInfo;

	public GleanInfoService getGleanInfoService() {
		return gleanInfoService;
	}

	public void setGleanInfoService(GleanInfoService gleanInfoService) {
		this.gleanInfoService = gleanInfoService;
	}
	
	public GleanInfo getGleanInfo() {
		return gleanInfo;
	}

	public void setGleanInfo(GleanInfo gleanInfo) {
		this.gleanInfo = gleanInfo;
	}

	public String add(){
		System.out.println(gleanInfo.getTitle());
		gleanInfoService.add(gleanInfo);
		return this.SUCCESS;
	}
}
